package com.front.web.api;

import com.alibaba.fastjson.JSONObject;
import com.bootdo.common.utils.HttpUtil;
import com.haojiangbo.JavaApiApplication;
import com.haojiangbo.inteface.JavaApiCallBackListener;

public class TestDemo {
    public static void main(String [] atgs){
        JavaApiApplication.setJavaApiCallBackListener(new JavaApiCallBackListener() {
            @Override
            public void call(String s) {
                System.err.println(s);

                JSONObject jsonObject = (JSONObject) JSONObject.parse(s);

                try {
                    HttpUtil.doPost("http://192.168.1.206/f/javaApi/addPar", jsonObject.toJSONString());
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
        JavaApiApplication.setFilePath("E:\\work\\linzhangGps\\target\\classes");

    }
}
